const express = require('express')
const router = express.Router()

//用于添加json请求头
router.all('/api/*', function (req, res, next) {
  res.setHeader('cache-control', 'no-catch')
  res.setHeader('content-type', 'application/json; charset=utf-8')
  next()
})

//拦截器

module.exports = router
